package com.xuanmiao.smsback.dao.mapper;

import com.xuanmiao.smsback.dao.model.BusinessNoticeDO;
import com.xuanmiao.smsback.domain.qo.BusinessNoticeQO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusinessNoticeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BusinessNoticeDO record);

    int insertSelective(BusinessNoticeDO record);

    BusinessNoticeDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BusinessNoticeDO record);

    int updateByPrimaryKey(BusinessNoticeDO record);






    /**
     *  自定义方法
     */
    Integer countByParam(BusinessNoticeQO qo);
    List<BusinessNoticeDO> queryByParam(BusinessNoticeQO qo);
    List<BusinessNoticeDO> queryByParamNotLimit(BusinessNoticeQO qo);

    /**
     *@Description:     根据主键id 批量更新成‘已发布’
     *@Param:  * @param ids
     *@Author: shenJianKang
     *@date: 2019/9/11 15:30
     */
    void batchUpdateSendStatusByPrimaryKey(@Param("ids") List<Integer> ids);


}